import Cookies from 'js-cookie'
// import { Log4Js } from '@/utils/index'
// console.log(console.log)
// if (!location.port && !/dev[\d{1}]/igm.test(location.href)) {
// }
// Log4Js()

const TokenKey = 'Admin-Token'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
    console.log('CookiesSet:', Cookies.get(TokenKey))
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
    console.log('reomveCookie:', Cookies.get(TokenKey))
  return Cookies.remove(TokenKey)
}
